package server.game.world.item;

public class Item {

	private int itemID;
	private int itemAmount;
	
	public Item(int itemID) {
		this(itemID, 1);
	}
	
	public Item(int itemID, int itemAmount) {
		this.itemID = itemID;
		this.itemAmount = itemAmount;
		if (this.itemAmount <= 0) {
			this.itemAmount = 1;
		}
	}
	
	public int getId() {
		return itemID;
	}

	public int getAmount() {
		return itemAmount;
	}

	public void setAmount(int amount) {
		this.itemAmount = amount;
	}

}
